﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TravelingWebApp.Models
{
    public class Anoucement
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string Id { get; set; }

        [StringLength(30, MinimumLength = 4)]
        public string Title { get; set; }

        [StringLength(1000, MinimumLength = 4)]
        public string Text { get; set; }

        public DateTime Date { get; set; }

    }
}
